<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>homework</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=path%>/js/student/stuHomework.js"></script>
	<style>
		.datalist{border:1px solid #0058a3;	/* 表格边框 */
							font-family:Arial;
							border-collapse:collapse;	/* 边框重叠 */
							background-color:#eaf5ff;	/* 表格背景色 */
							font-size:15px; }
							
		.datalist caption{padding-bottom:5px;
							font:bold 1.4em;  /*字体大小*/ 51页
							text-align:left; }
							
		.datalist th{  border:1px solid #0058a3;	/* 行名称边框 */
							background-color:#4bacff;	/* 行名称背景色 */
							color:#FFFFFF;		/* 行名称颜色 */
							font-weight:bold;
							padding-top:4px; padding-bottom:4px;
							padding-left:12px; padding-right:12px;
							text-align:center; }
		
		.datalist td{ border:1px solid #0058a3;	/* 单元格边框 */
							text-align:left;
							padding-top:4px; padding-bottom:4px;
							padding-left:10px; padding-right:10px; }

		.datalist tr.altrow{ background-color:#c7e5ff; }


		
		</style>	
  </head>
  
 <body style="text-aglin:center" >
 	<center>
   		<s:if test="homeworkList!=null||homeworkList!=''">
	   		<table border="1" style="text-align: center" class="datalist">
	   		<caption style="font-size:28px">作业上交信息</caption>
	   		
	   			<thead>
	   				<tr>
	   					<th>作业名称</th>
	   					<th>内容</th>
	   					<th>课程</th>
	   					<th>操作</th>
	   					<th>分数</th>
	   					
	   				</tr>
	   			</thead>
	   		
	   			<s:iterator value="homeworkList" status="index">
	   			
   					<tr>
   						<td><s:property value="homeworkName"/></td>
   						<td><s:property value="homeworkContent"/></td>
   						<td><s:property value="courseName"/></td>
   						
   						<td><a href="javascript:void(0)" name="<s:property value="homePath"/>" class="uploadhomework" id="uploadtext">上传作业</a></td>
   						<!-- <td><s:if test="homeworkPathList!=null"><s:property value="homeworkPathList[#indexStatus.index].score"/></s:if></td> -->
   						<td>
	   						<s:if test="homeworkPathList.size()>#index.index">
	   							
	   							<s:property value="homeworkPathList[#index.index].score"/>
	   						</s:if>
   						</td>
   					</tr>
   				</s:iterator>
	   		</table>	
   		</s:if>
   </center> 			
</body>
</html>
